home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17756 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.3 KB

  1. Path: howland.reston.ans.net!psinntp!psinntp!psinntp!psinntp!usenet
  2. From: grantp@usa.pipeline.com(Pete Grant)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Disappearing Wait Cursor
  5. Date: 17 Apr 1996 10:50:39 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4l2idv$d8o@news1.h1.usa.pipeline.com>
  8. References: <31744308.6222@dbcorp.ab.ca>
  9. NNTP-Posting-Host: 38.8.120.10
  10. X-PipeUser: grantp
  11. X-PipeHub: usa.pipeline.com
  12. X-PipeGCOS: (Pete Grant)
  13. X-Newsreader: Pipeline v3.5.0
  14.  
  15. On Apr 16, 1996 19:02:00 in article <Disappearing Wait Cursor>, 'Charlotte
  16. Moller <cmoller@dbcorp.ab.ca>' wrote: 
  17.  
  18.  
  19. >Disappearing wait cursor (hour-glass) 
  20. >------------------------------------- 
  21. >Has anyone ever come across this problem when developing Windows  
  22. >programs which access Oracle databases? 
  23. >When I have to perform an activity that I know is going to take a little  
  24. >while, I've being setting the wait cursor (hourglass) via the windows  
  25. >call hcursor = SetCursor(LoadCursor(NULL, IDC_WAIT)), and then restoring  
  26. >the cursor after the activity via SetCursor(hcursor).  This appears to  
  27. >work fine, except when I am  accessing the Orracle database via SQL*Net.  
  28. >Somewhere during the activity the wait cursor disappears!  This happens  
  29. >with any time consuming database access.  With a click happy user, the  
  30. >results are disastrous, usually ending in a GPF.  I'm currently  
  31. >programming in Borland C++ 3.1 / OWL 1.0 using the CommonBase library  
  32. >(by ImageSoft) for database access, but I've seen this problem with  
  33. >other development environments (i.e. ObjectView, calls from a C++  
  34. >program to R&R ReportWriter).  My best guess is SQL*Net does something  
  35. >nasty with the cursor, but a solution has thus far eluded me. 
  36. >Thanks :), 
  37. >Charlotte 
  38. Are you using SetCapture()/ReleaseCapture() in addition to  
  39. setting the cursor?  If not, you should experience the 
  40. phenomena at other times also.   
  41.  
  42. If you do not SetCapture(), the cursor is changed to that of 
  43. the window over which the mouse pointer is currently positioned.   
  44. Additionally, if the user moves the mouse away from your 'base'  
  45. window and then back, the cursor is returned to its default shape; 
  46. i.e., the one specified in the WNDCLASS structure. 
  47.  
  48. Now, if you SetCapture(), and SQLNet does also, you're out 
  49. of luck.   
  50. -- 
  51. Pete Grant 
  52. Kalevi, Inc. 
  53. Software Engineering & development
  54.